package com.ym.b2b.commons.exception;

public class BaseException extends RuntimeException {

    private String            code;

    private static final long serialVersionUID = -3460894222388289231L;

    public BaseException() {
        super();
    }

    public BaseException(String code) {
        super(code);
        this.code = code;
    }

    public BaseException(String code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BaseException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
